package tt.dz.dao.pro;

import java.util.List;

import org.springframework.stereotype.Repository;

import tt.dz.dao.base.BaseDao;
import tt.dz.entity.UserFundCurr;

/**
 * 用户资金记录操作Dao类
 * @author xielf
 *
 * @param <T>
 */
@Repository
@SuppressWarnings(value={"unchecked","rawtypes"})
public class UserFundCurrDao<T> extends BaseDao {

	
	/**
	 * 分页查询用户消费信息通过userId
	 * @param userId 用户ID
	 * @param pageNo	当前页码
	 * @param pageSize	每页显示个数
	 * @return
	 */
	public List<UserFundCurr> findUserFundCurrListByUserId(Integer userId,Integer pageNo,Integer pageSize){
		return super.findPagingByHql("FROM UserFundCurr where user_id=? ORDER BY update_time desc", pageNo, pageSize, userId);
	}
	
}
